<?php
    if($foot->num_rows()>0){
        $chute = $foot->row();
        $name1 = $chute->img;
    }
    if($ski->num_rows()>0){
        $mele = $ski->row();
        $name2 = $mele->img;
    }
 
    if($surfeur->num_rows()>0){
        $mai = $surfeur->row();
        $name3 = $mai->img;
    }
    if($regate->num_rows()>0){
        $golf = $regate->row();
        $name4 = $golf->img;
    }

?>
<div id="content_inter" align="center">
     <h1 align="left">Pourquoi adhérer ?</h1>
       <table width="900" style="margin-bottom:80px">
        <tr>
       <td valign="top"> <?php echo $text1;?></td>

<td width="430px" valign="top">
        <table width="100%" cellpadding="5px">
            <tr>
                <td> <img width="200px" height="132px" src="<?php echo base_url();?>assets/photo/<?php echo $name1?>" alt="foot"/></td>
                <td><img width="200px" height="132px" src="<?php echo base_url();?>assets/photo/<?php echo $name4?>" alt="regate"/></td>
            </tr>
            <tr>
                <td><img width="200px" height="132px" src="<?php echo base_url();?>assets/photo/<?php echo $name2?>" alt="ski"/></td>
                <td><img width="200px" height="132px"  src="<?php echo base_url();?>assets/photo/<?php echo $name3?>" alt="surfeur"/></td>
            </tr>
        </table>
</td>
 </tr>
   </table>
  
</div>